package com.wyy.service;

import com.wyy.pojo.Comments;
import com.wyy.pojo.model.CommentQuery;

import java.util.Map;

/**
 * @program: gytcb
 * @author: 吴磊
 * @create: 2021-06-03 20:21
 */
public interface CommentService {
    /**
     * 添加评论
     *
     * @param comments
     */
    Map<String, Object> insertComment(Comments comments);

    /**
     * 删除评论
     *
     * @param comments
     * @return
     */
    Map<String, Object> deleteComment(Comments comments);


    /**
     * 根据文章ID获取评论
     *
     * @param commentQuery
     * @return
     */
    Map<String, Object> getCommentByArticleIdOrUserId(CommentQuery commentQuery);

}
